﻿using MongoDB.Driver.GeoJsonObjectModel;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace AppSocketModel
{
    /// <summary>
    ///  围栏请求数据
    /// </summary>
    public class FenceRequestDto
    {
        /// <summary>
        /// IMEI
        /// </summary>
        [Required(ErrorMessage = "IMEI")]
        public string IMEI { set; get; }


        /// <summary>
        /// 围栏名称
        /// </summary>
        [Required(ErrorMessage = "围栏名称")]
        public string Name { set; get; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [Required(ErrorMessage = "是否启用")]
        public bool IsEnable { set; get; }

        /// <summary>
        /// 围栏编号
        /// </summary>
        [Required(ErrorMessage = "围栏编号")]
        public int FenceNumber { set; get; }

        /// <summary>
        /// 电子围栏报警类型
        /// </summary>
        [Required(ErrorMessage = "电子围栏报警类型")]
        public FenceAlarmType FenceAlarmType { set; get; }


        /// <summary>
        /// 多边形范围
        /// </summary>         
        [Required(ErrorMessage = "多边形范围")]
        public List<Map2DCoordinate> CoordinateList { set; get; }
         
        /// <summary>
        /// 地图种类
        /// </summary>
        [Required(ErrorMessage ="地图种类")]
        public GpsMapType GpsMapType { set; get; }
    }
}
